package cn.com.pc.content.domain.video;

import cn.com.pc.content.domain.content.Content;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

/**
 * 视频内容
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
@DynamicUpdate
@DynamicInsert
@Document(collection = "pcp_video")
public class Video extends Content {
    /**
     * 转码平台ID，token
     */
    private String token;

    /**
     * 视频时长(秒)
     */
    private int duration;

    /**
     * 视频存放
     */
    private List<VideoStoreInfo> videoStoreInfos;
}
